// Read3DSMem.h: interface for the CRead3DSMem class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_READ3DSMEM_H__DAF011A5_3ADD_4207_A35C_2F66F5859F70__INCLUDED_)
#define AFX_READ3DSMEM_H__DAF011A5_3ADD_4207_A35C_2F66F5859F70__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Vge_Read3DS.h"

///////////////////////////////////////////////////////////////////////////////

namespace ccgis{

class AFX_EXT_CLASS CRead3DSMem : public CRead3DS 
{
public:
	CRead3DSMem();
	virtual ~CRead3DSMem();
	
	BOOL Parse3DS(LPBYTE lpMemFile,DWORD size,LPCTSTR szPath); 
	CString szPathName;//the current file path

private:
	CMemFile MemFile;

protected:
	void dread(void *dest, UINT len);
	void dsetpos(LONG pos);
	DWORD dgetpos();
};

}//end of namespace ccgis

#endif // !defined(AFX_READ3DSMEM_H__DAF011A5_3ADD_4207_A35C_2F66F5859F70__INCLUDED_)
